package mest.dao.cxj;

import mest.VO.cxj.WarehouseSaveManytomanyRecordVO;
import mest.entity.warehousesave_manytomany_record;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WarehouseSaveManytomanyRecordDao {

    /**
     * 出入库操作记录
     * @param wsmr
     * @param theirDb
     * @return
     */
    int insertRecord(@Param("wsmr") warehousesave_manytomany_record wsmr, @Param("theirDb") String theirDb);


    /**
     * 根据仓库号查询出入库明细
     * @param page
     * @param limit
     * @param wfId
     * @param theirDb
     * @return
     */
    List<WarehouseSaveManytomanyRecordVO> selectAllRecordByWfId(@Param("page") Integer page, @Param("limit") Integer limit,
                                                                @Param("wfId") Integer wfId, @Param("theirDb") String theirDb);

    /**
     * 查询明细数量
     * @param wfId
     * @param theirDb
     * @return
     */
    Integer selectCountRecordByWfId(@Param("wfId") Integer wfId, @Param("theirDb") String theirDb);




}
